<h1><?php echo $title;?></h1>

<?php
echo form_open_multipart('cstudresult/create');
echo "<table class='table-manipulate'>";
echo "<tr><td><label for='pname'>Result Title</label></td>";
echo "<td>";
$data = array('name'=>'result_type','id'=>'result_type','size'=>25);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='result_src'>Upload Image</label></td>";
echo "<td>";
$data = array('name'=>'result_src','id'=>'result_src');
echo form_upload($data);
echo "</td></tr>";

echo "<tr><td><label for='semester'>Semester</label></td>";
echo "<td>";
$options = array('I' => 'I', 'II' => 'II');
echo form_dropdown('semester',$options,array(), 'style="width:105px;"');
echo "</td></tr>";

echo "<tr><td><label for='shift'>Shift</label></td>";
echo "<td>";
echo form_dropdown('shift_id',$shifts,array(), 'style="width:105px;"');
echo "</td></tr>";

echo "<tr><td><label for='group'>Group</label></td>";
echo "<td>";
$data = array('name'=>'group','id'=>'group','size'=>10);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='batch'>Batch</label></td>";
echo "<td>";
$data = array('name'=>'batch','id'=>'batch','size'=>10);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='year'>Year</label></td>";
echo "<td>";
$data = array('name'=>'year','id'=>'year','size'=>10);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='activate'>Activate</label></td>";
echo "<td>";
$options = array('1' => 'Active', '0' => 'Inactive');
echo form_dropdown('activate',$options, array(), 'style="width:105px;"');
echo "</td></tr>";
echo "</table>";

echo form_submit(array('class'=>'btn','name'=>'submit'),'Create Student Result');
//echo '<button class="btn" type="button">Create Student Result</button>';
echo form_close();


?>